package com.fdd.op.sdk.request.api.common;

import com.fdd.op.sdk.ApiRuleException;
import com.fdd.op.sdk.BaseFddRequest;
import com.fdd.op.sdk.constants.Constants;
import com.fdd.op.sdk.internal.mapping.RequestField;
import com.fdd.op.sdk.response.api.common.GetFileByFileIdResponse;

import java.util.Map;

public class GetFileByFileIdRequest extends BaseFddRequest<GetFileByFileIdResponse> {
    @Override
    public String getApiMethodName() {
        return "/base/api/common/getFileByFileId";
    }

    @Override
    public Map<String, Object> getTextParams() {
        return null;
    }

    @Override
    public Class<GetFileByFileIdResponse> getResponseClass() {
        return GetFileByFileIdResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public String getHttpMethod() {
        return Constants.METHOD_GET;
    }

    @RequestField
    private String fileId;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
}
